import request from '@/utils/request'

/**
 * 厂家信息查询
 */
export function getListPage(params) {
  return request({
    url: '/cms/equipmentProducer/listPage',
    method: 'get',
    params: params
  })
}

/**
 * 厂家信息删除
 */
export function deleteData(id) {
  return request({
    url: `/cms/equipmentProducer/${id}`,
    method: 'delete'
  })
}

/**
 * upd add
 * @param query
 * @returns {AxiosPromise}
 */
export function addOrEditData(param) {
  return request({
    url: '/cms/equipmentProducer/saveOrUpdate',
    method: 'POST',
    data: param
  })
}
